
const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property(cc.Node)
    screenHomeLeaderboard: cc.Node = null;

    @property
    screenLeaderboard:'ScreenLeaderboard'=null;

    // LIFE-CYCLE CALLBACKS:
    onEnable() {
        //game_scene.instance.onGameStart(false, false);
    }

    // onLoad () {}

    start () {

    }
    onBtnClickLeaderboard() {
        this.node.active = false;
        this.screenHomeLeaderboard.active = true;
    }

    onBtnClickLeaderboardClose() {
        this.screenHomeLeaderboard.active = false;
        this.node.active = true;
    }

    onBtnClickSkinShop() {
        //ScreenMgr.instance.showScreen('ScreenSkinShop');
        //ScreenMgr.instance.closeScreen('ScreenHome');
    }

    // update (dt) {}
}
